package com.xxg.renrenuser.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * 地址信息参数
 *
 * @author xxg
 * @date 2020/10/21
 */
@Data
@ApiModel(value = "EditAddressQuery", description = "地址信息参数")
public class EditAddressQuery {
    @NotNull(message = "addressId不能为null")
    @ApiModelProperty(value = "地址ID")
    private String addressId;
    @NotNull(message = "userName不能为null")
    @Size(max = 50, message = "userName字段长度不能大于50")
    @ApiModelProperty(value = "收货人")
    private String userName;
    @Size(max = 6, message = "areaCode字段长度不能大于6")
    @ApiModelProperty(value = "收货行政区划代码6位")
    private String areaCode;
    @NotNull(message = "province不能为null")
    @Size(max = 10, message = "province字段长度不能大于10")
    @ApiModelProperty(value = "省份")
    private String province;
    @NotNull(message = "city不能为null")
    @Size(max = 20, message = "city字段长度不能大于20")
    @ApiModelProperty(value = "城市")
    private String city;
    @NotNull(message = "county不能为null")
    @Size(max = 20, message = "county字段长度不能大于20")
    @ApiModelProperty(value = "区县")
    private String county;
    @NotNull(message = "street不能为null")
    @Size(max = 100, message = "street字段长度不能大于100")
    @ApiModelProperty(value = "街道")
    private String street;
    @NotNull(message = "phone不能为null")
    @Size(max = 11, message = "phone字段长度不能大于11")
    @ApiModelProperty(value = "手机号")
    private String phone;
    @Min(value = 0, message = "defaultAddress字段不能小于0")
    @Max(value = 1, message = "defaultAddress字段不能大于1")
    @ApiModelProperty(value = "是否默认地址")
    private Integer defaultAddress;
    @Size(max = 50, message = "addressLabel字段长度不能大于50")
    @ApiModelProperty(value = "地址标签")
    private String addressLabel;
}
